/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package trim.main;

import java.io.File;
import java.io.InputStream;
import javax.swing.SwingUtilities;
import trim.common.inputdata.InputData;
import trim.common.result.TrimResult;
import trim.differentmaterials.algorithms.Ernm;
import trim.testalgorithms.ErlmOpt;
import trim.testalgorithms.Ernm1;
import trim.testalgorithms.ErnmOpt;

/**
 *
 * @author Podorov Alexander
 */
public class NewMain {

    /**
     * @param args the command line arguments
     */


    public static void main(String[] args) {

        SwingUtilities.invokeLater(new Runnable() {

            public void run() {
                try
                {
                    

                    //InputData inputData = new InputData(new File("E:\\SVN-Ant-Projects\\trim-differentmaterials\\test\\tests\\in.xml"));
                    //TrimResult result = new ErnmOpt().solve(inputData);

                    //System.out.println(result.getTail());

                    InputData inputData1 = new InputData(new File("E:\\SVN-Maven-Projects\\trim-differentmaterials\\src\\test\\resources\\tests\\0.34.xml"));
                    TrimResult result1 = new Ernm1().solve(inputData1);

                    System.out.println(result1.getTail());

                }
                catch (Exception e)
                {
                    e.printStackTrace();
                }
            }

        });



    }

}

